<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="body">
            <script>
                function title() {
                    document.getElementById('atendimento').className='selected';
                }
                window.onload=title;
            </script>
            <h:form id="cepForm" enctype="multipart/form-data">
                <h1 class="title">Agenda</h1>
                <div class="row">
                    <div class="twelve columns"> 
                        <div class="container_24 clearfix">
                            <div class="grid_6">
                                <p:menu style="width: 100%;" >
                                    <p:submenu label="Nova Agenda (BETA)" rendered="true">
                                        <p:menuitem url="atendimentopaciente.xhtml?step=1" value="Novo Atendimento" icon="ui-icon-plusthick" rendered="false"/>
                                        <p:menuitem url="agenda2.xhtml?type=p" value="Agenda por Procedimento" icon="ui-icon-calendar"/>
                                        <p:menuitem url="agenda2.xhtml?type=d" value="Agenda por Médico" icon="ui-icon-calendar"/>
                                        <p:menuitem url="unattended.xhtml" value="Cancelar Agenda"
                                                    icon="ui-icon-cancel" rendered="#{!managerLayout.doctorByLogin}"/>

                                    </p:submenu>
                                    <p:submenu label="Agenda" rendered="true">
                                        <p:menuitem url="agenda.xhtml?type=p" value="Agenda por Procedimento" icon="ui-icon-calendar"/>
                                        <p:menuitem url="agenda.xhtml?type=d" value="Agenda por Médico" icon="ui-icon-calendar"/>

                                    </p:submenu>
                                    <p:submenu label="Médico" rendered="#{managerLayout.doctorByLogin}">
                                        <p:menuitem url="agenda2.xhtml?d=#{managerLayout.doctor.id}" value="Minha Agenda" icon="ui-icon-calendar"   rendered="false"/>
                                        <p:menuitem url="novaagenda.xhtml?d=#{managerLayout.doctor.id}" value="Minha Agenda" icon="ui-icon-calendar"  rendered="true"/>
                                        <p:menuitem url="financialDoctor.xhtml?d=#{managerLayout.doctor.id}" value="Balanço Financeiro" icon="ui-icon-bullet" />
                                        <p:menuitem url="unattended.xhtml?doctorUnattended=#{managerLayout.doctor.id}" value="Cancelar Agenda"
                                                    icon="ui-icon-cancel"/>
                                    </p:submenu>
                                    <p:submenu label="Laudos">
                                        <p:menuitem url="indexAppraisal.xhtml" value="Laudos" icon="ui-icon-clipboard"/>
                                        <p:menuitem url="indexTemplateAppraisal.xhtml" value="Modelos" icon="ui-icon-folder-open"/>
                                    </p:submenu>

                                </p:menu>
                            </div>
                            <div class="grid_18">

                                

                            </div>
                        </div>

                    </div>
                </div>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
